package cn.wgx.common.base;

import cn.wgx.common.util.ResponseDataUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;


public abstract class IBaseNoneController<S extends IBaseService, T> extends BaseLogger{

    protected T t;

    @SuppressWarnings("all")
    @Autowired
    protected S service;

    /**
     * 默认根请求空间
     *
     * @return
     */
    @ApiIgnore
    @ResponseBody
    @GetMapping
    public Map<String, Object> defaultUrl() {return ResponseDataUtil.returnErrorMap("没找到接口.");}

}
